﻿using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;

namespace MvcCart.Models
{
    public class Cart
    {
        [Display(Name = "购物车id")]
        public int CartId { get; set; } // 购物车id

        [Display(Name = "商品id")]
        public int CommodityId { get; set; } // 商品id

        [Display(Name = "商品数量")]
        public int Count { get; set; }    //商品数量

        [Display(Name = "创建时间")]
        [DataType(DataType.Date)]

        public DateTime CreateDate { get; set; } // 创建时间

        [Display(Name = "商品价格")]
        [DataType(DataType.Currency)]
        public decimal Price { get; set; } // 商品价格

        [Display(Name = "用户id")]
        public int UserId { get; set; } // 用户id


    }
}
